package com.hypo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "nursing_level")
public class NursingLevel {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id; //主键ID
    private String name; //等级名称
    @TableField(value = "lplan_id")
    private Integer lplanId; //护理计划ID
    private BigDecimal fee; //护理费用
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer status; //状态（0：禁用，1：启用）
    private String description; //等级说明
    @TableField(value = "create_time")
    private LocalDateTime createTime; //创建时间
    @TableField(value = "create_by")
    private Integer createBy; //创建人id
    @TableField(value = "update_by")
    private Integer updateBy; //更新人id
    private String remark; //备注
    @TableField(value = "update_time")
    private LocalDateTime updateTime; //更新时间
}
